package com.qf.service;

import com.qf.utils.ResultMsg;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.Map;

public interface BookService {
    ResultMsg findAll(Integer current,Integer pageSize);

    ResultMsg sure(int bookId);

    ResultMsg cancel(int bookId);

    ResultMsg findByDay(String time);

    ResultMsg findByMonth(String time);

    ResultMsg findByWeek(String time);

    ResultMsg add(Map<String,Object> map);

    ResultMsg del(int bookId);

    ResultMsg restore(int bookId);

    ResultMsg delById(int bookId);

    ResultMsg findByKeyword(String keyword);

    ResultMsg findAll2(Map<String, Object> maps);

    ResultMsg findByUid(int userId);

    ResultMsg findByTomorrow();

    ResultMsg clear();
}
